package com.fp.m7.model;

import org.springframework.data.neo4j.annotation.EndNode;
import org.springframework.data.neo4j.annotation.RelationshipEntity;
import org.springframework.data.neo4j.annotation.StartNode;

@RelationshipEntity(type = "FOLLOWS")
public class Follow extends EntityBase {
	private static final long serialVersionUID = 8489803917505881539L;

	@StartNode
	private Account follower;
	@EndNode
	private Account followed;

	private Long auditDD;

	public Follow() {
	}

	public Follow(Account follower, Account followed) {
		this.follower = follower;
		this.followed = followed;
	}

	public Account getFollower() {
		return follower;
	}

	public void setFollower(Account follower) {
		this.follower = follower;
	}

	public Account getFollowed() {
		return followed;
	}

	public void setFollowed(Account followed) {
		this.followed = followed;
	}

	public Long getAuditDD() {
		return auditDD;
	}

	public void setAuditDD(Long auditDD) {
		this.auditDD = auditDD;
	}

	@Override
	public String toString() {
		return new StringBuilder("Follow [id=").append(id) //
				.append("; follower=").append(follower) //
				.append("; followed=").append(followed) //
				.append("; auditCD=").append(auditCD) //
				.append("; auditDD=").append(auditDD).append("]").toString();
	}

}
